<html>
    <head>
        <meta name="layout" content="main" />
        <title>WebAlbum : Show Person</title>
    </head>
    <body>
        <div class="body">
            <h1>Show Person</h1>
            <g:render template="/shared/creators" />
            <g:render template="/shared/messages" />
            <div class="dialog">
                <table>
                    <tbody>
                        <tr class="prop">
                            <td valign="top" class="name">Name:</td>
                            <td valign="top" class="value">${person.name}</td>
                        </tr>
                        <tr class="prop">
                            <td valign="top" class="name">Motto:</td>
                            <td valign="top" class="value">${person.motto}</td>
                        </tr>
                        <tr class="prop">
                            <td valign="top" class="name">Widgets:</td>
                            <td valign="top" class="value">${person.widgetCount}</td>
                        </tr>
                        <tr class="prop">
                            <td valign="top" class="name">Date Created:</td>
                            <td valign="top" class="value"><g:formatDate format="dd MMM yyyy HH:mm:ss" date="${person.dateCreated}"/></td>
                        </tr>
                        <tr class="prop">
                            <td valign="top" class="name">Last Updated:</td>
                            <td valign="top" class="value"><g:formatDate format="dd MMM yyyy HH:mm:ss" date="${person.lastUpdated}"/></td>
                        </tr>
                        <wa:ifSameUser id="${person.id}">
                            <tr class="menuButtons">
                                <td colspan="2">
                                    <span class="menuButton"><g:link class="edit" action="edit" id="${person.id}">Edit</g:link></span>
                                </td>
                            </tr>
                        </wa:ifSameUser>
                    </tbody>
                </table>
            </div>
        </div>
    </body>
</html>
